package com.coffee.core.result;

import java.io.Serializable;

/**
 * @author Xulg
 */
@SuppressWarnings({"WeakerAccess", "unused"})
class CommonResult implements Serializable {
    private static final long serialVersionUID = 4568790340211526532L;

    /**
     * 是否成功
     */
    protected boolean success = false;

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 信息
     */
    private String msg;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
